<?php
namespace Mouta\UserBundle\Form\Type;

use Mouta\AmistateBundle\Entity\Usuario;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class ImageType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('file','file',array(
                'label'  => 'Imagen',
            ))
            ->add('nombre','textarea', array(
                'label'  => 'Descripción',
                'required'  => false,
                'attr' => array('rows' => '6'),
            ))
        ;
    }

    public function getName()
    {
        return 'Image';
    }


}